package Sort;

import java.util.BitSet;

public class BitSetTest {
    public static void main(String[] args) {
        BitSet bitSet = new BitSet();
        int num[] = {1,5,30,32,64,56,159,120,21,17,35,45};
        for(int i=0;i<num.length;i++){
            bitSet.set(num[i]);
        }
        for(int i = 0 ; i <bitSet.size();i++){
            if(bitSet.get(i) == true){
                System.out.println(i);
            }
        }
        //System.out.println(bitSet.size());

    }
}
